<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Stencil Preview</title>
</head>
<body>
  <script>
    const script = document.createElement('script');
    script.setAttribute('type', 'module');
    script.innerHTML = 'console.log("PREVIEW!!");\n' + window.opener.bundledInput;
    document.head.appendChild(script);
    document.body.innerHTML = window.opener.htmlCodeInput;
  </script>
</body>
</html>